<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2013-11-23 21:12
 */
interface CompetenciaDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return Competencia 
	 */
	public function load($id);

	/**
	 * Get all records from table
	 */
	public function queryAll();
	
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllOrderBy($orderColumn);
	
	/**
 	 * Delete record from table
 	 * @param competencia primary key
 	 */
	public function delete($id_competencia);
	
	/**
 	 * Insert record to table
 	 *
 	 * @param Competencia competencia
 	 */
	public function insert($competencia);
	
	/**
 	 * Update record in table
 	 *
 	 * @param Competencia competencia
 	 */
	public function update($competencia);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByNombreCompetencia($value);

	public function queryByModalidad($value);

	public function queryByFechaCompetencia($value);

	public function queryByHoraCompetencia($value);

	public function queryByIdDeporte($value);

	public function queryByIdEspacio($value);

	public function queryByDescripcionCompetencia($value);

	public function queryByEstadoCompetencia($value);


	public function deleteByNombreCompetencia($value);

	public function deleteByModalidad($value);

	public function deleteByFechaCompetencia($value);

	public function deleteByHoraCompetencia($value);

	public function deleteByIdDeporte($value);

	public function deleteByIdEspacio($value);

	public function deleteByDescripcionCompetencia($value);

	public function deleteByEstadoCompetencia($value);


}
?>